cmake_minimum_required(VERSION 3.16)
project(qt_test)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_AUTOMOC ON)  # 必须为ON
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

find_package(Qt6 COMPONENTS Core Gui Widgets OpenGLWidgets REQUIRED)




# 添加可执行文件
add_executable(${PROJECT_NAME} 
    draw_car.cpp
)

target_link_libraries(${PROJECT_NAME} PRIVATE
    Qt6::Core
    Qt6::Gui
    Qt6::Widgets
    Qt6::OpenGLWidgets
)